home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Resources
/
Burning & Media
/
GB-PVR 1.2.13
/
GBPVR10213.msi
/
Cabs.w1.cab
/
Stub_Info_aspx_cs.cs31
< prev
next >
Wrap
Text File
|
2006-07-15
|
2KB
|
62 lines
//===========================================================================
// This file was generated as part of an ASP.NET 2.0 Web project conversion.
// This code file 'App_Code\Migrated\Stub_Info_aspx_cs.cs' was created and contains an abstract class
// used as a base class for the class 'Migrated_Info' in file 'Info.aspx.cs'.
// This allows the the base class to be referenced by all code files in your project.
// For more information on this code pattern, please refer to http://go.microsoft.com/fwlink/?LinkId=46995
//===========================================================================
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Text.RegularExpressions;
using System.IO;
using System.Management;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Web;
using System.Web.Caching;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
using GBPVR.Public;
using GBPVR.Backend.Common; // For IRecordingService
namespace gbweb
{
abstract public class Info : System.Web.UI.Page
{
private static IRecordingService cachedRecordingService = null;
public static Regex liveTVRegex = new Regex(@":Live TV \((.*\.mpg)\)$", RegexOptions.IgnoreCase | RegexOptions.Compiled);
public static IRecordingService GetRecordingService()
{
if (cachedRecordingService != null) return cachedRecordingService;
string serviceLocation = Global.Config.SelectSingleNode("/settings/RecordingServiceLocation").InnerText;
if (serviceLocation == null) serviceLocation = "tcp://localhost:7968/RecordingRemote";
cachedRecordingService = (IRecordingService)Activator.GetObject(typeof(IRecordingService), serviceLocation);
if (cachedRecordingService == null)
{
Logger.Error("Couldn't open communication channel remote recording service");
}
return cachedRecordingService;
}
}
}